import network from '@/common/network.js'

//用户消息表-分页列表查询
export const emUserMessageList =param =>{
  return network({
    url: 'em-boot/biz/api/emCompanyUserMessage/list',
    param
  })
}

//我的用户消息未读数
export const myUnreadMessageCount =param =>{
  return network({
    url: 'em-boot/biz/api/emCompanyUserMessage/myUnreadMessageCount',
    param
  })
}

//我的用户消息表-通过id查询
export const emUserMessageInfo =id =>{
  return network({
    url: `em-boot/biz/api/emCompanyUserMessage/info?id=${id}`,
  })
}

//读用户消息
export const emUserReadMessage =messageId=>{
  return network({
    url: `em-boot/biz/api/emCompanyUserMessage/readMessage?messageId=${messageId}`,
  })
}



//系统消息表-分页列表查询
export const sysEmUserMessageList =param =>{
  return network({
    url: 'em-boot/biz/api/emCompanySysMessage/list',
    param
  })
}

//我的系统消息未读数
export const mySysUnreadMessageCount =param =>{
  return network({
    url: 'em-boot/biz/api/emCompanySysMessage/myUnreadSysMessageCount',
    param
  })
}

//系统消息表-通过id查询
export const emSysUserMessageInfo =id =>{
  return network({
    url: `em-boot/biz/api/emCompanySysMessage/info?id=${id}`,
  })
}
//读系统消息
export const readSysMessage =messageId =>{
  return network({
    url: `em-boot/biz/api/emCompanySysMessage/readSysMessage?messageId=${messageId}`,
  })
}
